﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ARR.Entities;
using ARR.Services.Domain;
using System.Linq.Expressions;
using ARR.Entities.Gateways;

namespace ARR.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "CountryService" in both code and config file together.
    public class CountryService : ICountryService
    {
        public List<Country> GetAll()
        {
            return CountriesDomain.GetAll();
        }
        
        public Country GetById(int countryID)
        {
            return CountriesDomain.GetById(countryID);
        }

        public void SaveCountries(List<Country> countries)
        {
            CountriesDomain.SaveCountries(countries);
        }

        public List<Currency> GetAllCurrencies()
        {
            return CountriesDomain.GetAllCurrencies();
        }

        public List<CurrencyExchangeRate> GetCurrencyExchangeRates(int countryId)
        {
            return CountriesDomain.GetCurrencyExchangeRates(countryId);
        }

        public void SaveCurrencyExchangeRates(List<CurrencyExchangeRate> rates)
        {
            CountriesDomain.SaveCurrencyExchangeRates(rates);
        }
    }
}
